package com.rgs.se.design.factory;

import lombok.Data;

/**
 * @author Ren Gaoshuai
 * @ClassName Teacher
 * @Description TODO
 * @date 2022-02-28 15:42
 **/
@Data
public class Teacher implements Person{

    public Teacher(){
        System.out.println("教师对象被创建");
    }

    @Override
    public void eat() {
        System.out.println("教师吃");

    }

    @Override
    public void sleep() {
        System.out.println("教师睡");

    }
}
